#include "device/ezmaster.h"

EZMaster::EZMaster(std::shared_ptr<ConvDMA> dma_obj,
                   std::shared_ptr<VectorPath_v2> vector_obj,
                   std::shared_ptr<ConvPath> conv_obj,
                   std::shared_ptr<Sram> table_mem,
                   std::shared_ptr<Sram> task_mem0,
                   std::shared_ptr<Sram> task_mem1)
{
  DMAPtr = std::move(dma_obj);
  VectorPtr = std::move(vector_obj);
  ConvPtr = std::move(conv_obj);
  TableMemPtr = std::move(table_mem);
  TaskMemPtr[0] = std::move(task_mem0);
  TaskMemPtr[1] = std::move(task_mem1);
}

void EZMaster::Run()
{
  u32* table_mem = reinterpret_cast<u32*>(TableMemPtr->get_ram_pointer());
  u32* task_mem[2];
  task_mem[0] = reinterpret_cast<u32*>(TaskMemPtr[0]->get_ram_pointer());
  task_mem[1] = reinterpret_cast<u32*>(TaskMemPtr[1]->get_ram_pointer());
  
  

}
